package com.wxl.common.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.wxl.common.R
import com.wxl.common.util.ImgLoader

/**
 * create file time : 2021/3/15
 * create user : wxl
 * subscribe :
 */
class ImageDetailAdapter : BaseQuickAdapter<Int,BaseViewHolder>{

    constructor(data: MutableList<Int>?) : super(R.layout.item_detail_image,data)


    override fun convert(helper: BaseViewHolder, item: Int?) {
        item?.let {
            ImgLoader.loadScaledWHResource(helper.getView(R.id.imageDetailItem),it)
            helper.addOnClickListener(R.id.imageDetailItem)
        }
    }

}